package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.GoodsDeposit;
import com.aaa.mrcai.pojo.vo.GoodsDepositVo;
import com.aaa.mrcai.query.GoodsDepositQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 0:08 2021/12/7
 */
public interface GoodsDepositMapper {
    List<GoodsDeposit> queryGoodsDeposit(GoodsDepositQuery query);

    Long queryGoodsDepositTotalCount(GoodsDepositQuery query);

    Long isGoodsDepositExists(@Param("state") String state);

    int addGoodsDeposit(GoodsDepositVo goodsDepositVo);

    GoodsDepositVo getGoodsDeposit(int id);

    int deleteGoodsDeposit(int id);

    long isUpdateGoodsDepositExists(GoodsDepositVo goodsDepositVo);

    int updateGoodsDeposit(GoodsDepositVo goodsDepositVo);}
